import { jwtRequest } from "@/utils/jwtRequest";
import { ApiResponse } from "./types";

export const getJwtToken = async (account: string, password: string): Promise<ApiResponse> => {
    return await jwtRequest.post('/api/Authorize/login', {
        account,
        password
    });
};